Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pat O'Callaghan 34 posts 56 karma points
    May 12, 2012 @ 04:16
    Pat O'Callaghan
    0

    [Our.Umbraco.org] Member Locator JS syntax bug

    I know this forum is essentially for Umbraco bugs but I didn't know where else to put it.

    I'm using the latest version of Chrome and noticed a bug with the Member Locator tool at http://our.umbraco.org/people/member-locator. My name has an apostrophe which causes a syntax error in the javascript and not show the map. It seems the backend code is creating the Javascript variables without HTML encoding the inputs (alternatively use double quotes on the variables). It creates the variable like so:

    var umb_member_name = 'Pat O'Callaghan';

    The apostrophe causes the syntax error as the enclosing quotes are also single quotes.

Please Sign in or register to post replies

Write your reply to:

Draft